#ifndef WIDGETBINDS_H
#define WIDGETBINDS_H

#include <QtGui/QWidget>

#include "BindList.h"

namespace Ui {
    class WidgetBinds;
}

class WidgetBinds : public QWidget {
    Q_OBJECT
//    Q_DISABLE_COPY(WidgetBinds)

public:
    explicit WidgetBinds(QWidget *parent = 0);
    virtual ~WidgetBinds();

    void setBinds(BindList binds);

signals:
    void back();

protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::WidgetBinds *m_ui;

    BindList binds_;

    QStringList keys;

    typedef enum EnumActions {say, sell, buy, act, evo, admin, mis};
    EnumActions currentAction_;


    // Private methods
    void saveBinds();



private slots:
    void on_btnKey_clicked();
    void on_btnChooseColor_clicked();
    void on_btnReset_clicked();
    void on_btnSave_clicked();
    void on_btnAddAction_clicked();
    void on_comboKey_currentIndexChanged(QString );
    void on_radioBtnMis_toggled(bool checked);
    void on_radioBtnAdmin_toggled(bool checked);
    void on_radioBtnEvolution_toggled(bool checked);
    void on_radioBtnActiveItem_toggled(bool checked);
    void on_radioBtnBuy_toggled(bool checked);
    void on_radioBtnSell_toggled(bool checked);
    void on_radioBtnSay_toggled(bool checked);
    void on_btnBack_clicked();
    void timerEvent(QTimerEvent *event);
};

#endif // WIDGETBINDS_H
